#include "Model.h"

Model::Model()
{
}

Model::~Model()
{
}

void Model::UnloadContent()
{
	std::list<ModelMesh*>::iterator it;

	for(it = m_pMeshes.begin(); it != m_pMeshes.end(); it++)
	{
		ModelMesh* modelMesh(*it);

		modelMesh->UnloadContent();
	}

	m_pMeshes.clear();
}

void Model::Draw()
{
	std::list<ModelMesh*>::iterator it;

	for(it = m_pMeshes.begin(); it != m_pMeshes.end(); it++)
	{
		ModelMesh* modelMesh(*it);

		modelMesh->Draw();
	}
}

std::list<ModelMesh*> Model::GetMeshes()
{
	return m_pMeshes;
}

int Model::GetMeshCount()
{
	return m_nMeshCount;
}